<?
//show_array($_SESSION);
?>
<script type="text/javascript">
    <?
    if(!empty($_SESSION['success'])){
        if($_SESSION['success']!='' || $_SESSION['success']!=null){
            if($_SESSION['success']==1){
                $pesan='Data berhasil disimpan';
            }else
                $pesan=$_SESSION['success'];
            ?>noticeSuccess('<?=$pesan?>');<?
            $_SESSION['success']='';
        }
    }
    if(!empty($_SESSION['failed'])){
        if(($_SESSION['failed']!='' || $_SESSION['failed']!=null)){
            if($_SESSION['failed']==1){
                $pesan='Data gagal disimpan';
            }else
                $pesan=$_SESSION['failed'];
            ?>noticeFailed('<?=$pesan?>');<?
            $_SESSION['failed']='';
        }
    }
    ?>
//    noticeSuccess(null);
//    noticeFailed(null);
</script>